import time
import datetime


#获取当前时间
def get_now_time():
    return time.strftime("%Y-%m-%d %H:%M:%S", time.localtime())


#
def get_timestamp():
    # timeArray = time.strptime(time.localtime(), "%Y-%m-%d %H:%M:%S")
    #转换为时间戳:
    return int(time.mktime(time.localtime()))


#获取时间对象
def get_time():
    return time.localtime()


#获取系统时间戳
def get_system_timestamp():
    return datetime.datetime.now().timestamp()

